# coding: utf-8

from sqlalchemy import create_engine

from sqlalchemy.ext.declearative import declearative_base

from sqlchemy import Colum, String, Integer

engine = create_engine('mysql+mysqldb://root@localhost:3306/blog?charset=utf8')

Base = declearative_base()

class User(Base):
	__tablename__ = 'users'
	id = Column(Integer, primary_key = True)
	uesrname = Column(String(64), nullable = False,index =True)
	password = Column(String(64),nullable =False,index =True)


	def __repr__(self):
		return '%s(%r)' % (self.__class__.__name__,self.username)
